<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>

<f:message var="nadpis" key="password.change"/>


<s:layout-render name="/mainLayout.jsp" nadpis="${nadpis}">
    <s:layout-component name="body">
        <shiro:authenticated>
            <s:useActionBean beanclass="cz.muni.fi.pa165.mushroom.website.web.GathererActionBean" var="actionBean"/>       

            <s:form beanclass="cz.muni.fi.pa165.mushroom.website.web.GathererActionBean">
                <s:hidden name="gatherer.id"/>
                <fieldset><legend><f:message key="password.change"/></legend>
                    <s:errors/>
                    <s:useActionBean beanclass="cz.muni.fi.pa165.mushroom.website.web.GathererActionBean" var="actionBean"/>       

                    <table>
                        <tr>
                            <th><s:label for="password" name="gatherer.currentPass"/></th>
                            <td><s:password id="password" name="password"/></td>
                        </tr>
                        <tr>
                            <th><s:label for="newPassword" name="gatherer.newPassword"/></th>
                            <td><s:password id="newPassword" name="newPassword"/></td>
                        </tr>
                        <tr>
                            <th><s:label for="reenteredNewPassword" name="gatherer.repeatPassword"/></th>
                            <td><s:password id="reenteredNewPassword" name="reenteredNewPassword"/></td>
                        </tr>
                    </table>
                    <s:submit name="changePassword"><f:message key="edit.save"/></s:submit>
                    <s:submit name="cancel"><f:message key="cancel"/></s:submit>
                    </fieldset>
            </s:form>
        </shiro:authenticated>
    </s:layout-component>
</s:layout-render>
